import request from '@/utils/request'
// 材料目录模块====================================================
// 添加材料目录
export function addMaterialDirectory(data) {
  return request({
    url: '/api/materialConsumableManage/materialDirectory/addMaterialDirectory',
    method: 'post',
    data
  })
}
// 删除材料目录
export function deleteMaterialDirectory(params) {
  return request({
    url: '/api/materialConsumableManage/materialDirectory/deleteMaterialDirectory',
    method: 'post',
    params
  })
}
// 获取材料目录详情
export function getMaterialDirectoryDetail(params) {
  return request({
    url: '/api/materialConsumableManage/materialDirectory/getMaterialDirectoryDetail',
    method: 'post',
    params
  })
}
// 获取材料目录列表
export function getMaterialDirectoryList(params) {
  return request({
    url: '/api/materialConsumableManage/materialDirectory/getMaterialDirectoryList',
    method: 'post',
    params
  })
}
// 获取材料目录树
export function getMaterialDirectoryTree(params) {
  return request({
    url: '/api/materialConsumableManage/materialDirectory/getMaterialDirectoryTree',
    method: 'post',
    params
  })
}
// 更新材料目录
export function updateMaterialDirectory(params) {
  return request({
    url: '/api/materialConsumableManage/materialDirectory/updateMaterialDirectory',
    method: 'post',
    params
  })
}
// 材料详情模块=================================================
// 添加材料详情
export function addMaterialDetail(data) {
  return request({
    url: '/api/materialConsumableManage/materialDetail/addMaterialDetail',
    method: 'post',
    data
  })
}
// 删除材料详情
export function deleteMaterialDetail(params) {
  return request({
    url: '/api/materialConsumableManage/materialDetail/deleteMaterialDetail',
    method: 'post',
    params
  })
}
// 获取材料详情详情
export function getMaterialDetailDetail(params) {
  return request({
    url: '/api/materialConsumableManage/materialDetail/getMaterialDetailDetail',
    method: 'post',
    params
  })
}
// 获取材料详情列表
export function getMaterialDetailList(data) {
  return request({
    url: '/api/materialConsumableManage/materialDetail/getMaterialDetailList',
    method: 'post',
    data
  })
}
// 更新材料详情
export function updateMaterialDetail(data) {
  return request({
    url: '/api/materialConsumableManage/materialDetail/updateMaterialDetail',
    method: 'post',
    data
  })
}
// 机械目录模块=================================================================================
// 添加机械目录
export function addMachineDirectory(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDirectory/addMachineDeviceDirectory',
    method: 'post',
    data
  })
}
// 删除机械目录
export function deleteMachineDirectory(params) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDirectory/deleteMachineDeviceDirectory',
    method: 'post',
    params
  })
}
// 获取机械目录详情
export function getMachineDirectoryDetail(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDirectory/getMachineDeviceDirectoryDetail',
    method: 'post',
    data
  })
}
// 获取机械目录列表
export function getMachineDirectoryList(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDirectory/getMachineDeviceDirectoryList',
    method: 'post',
    data
  })
}
// 获取机械目录树
export function getMachineDirectoryTree(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDirectory/getMachineDeviceDirectoryTree',
    method: 'post',
    data
  })
}
// 更新机械目录
export function updateMachineDirectory(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDirectory/updateMachineDeviceDirectory',
    method: 'post',
    data
  })
}
// 添加机械设备详情
export function addMachineDeviceDetail(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDetail/addMachineDeviceDetail',
    method: 'post',
    data
  })
}
// 删除机械设备详情
export function deleteMachineDeviceDetail(params) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDetail/deleteMachineDeviceDetail',
    method: 'post',
    params
  })
}
// 导出机械设备详情
export function exportMachineDeviceDetail(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDetail/exportMachineDeviceDetail',
    method: 'post',
    data
  })
}
// 获取机械设备详情详情
export function getMachineDeviceDetailDetail(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDetail/getMachineDeviceDetailDetail',
    method: 'post',
    data
  })
}
// 获取机械设备详情列表
export function getMachineDeviceDetailList(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDetail/getMachineDeviceDetailList',
    method: 'post',
    data
  })
}
// 更新机械设备详情
export function updateMachineDeviceDetail(data) {
  return request({
    url: '/api/machineDeviceManage/machineDeviceDetail/updateMachineDeviceDetail',
    method: 'post',
    data
  })
}
